package telepasea.app;

import android.content.Context;
import android.content.SharedPreferences;

public class Util {
	public static String getSharedPreferencesValue(Context context,
			String name, int mode, String key) {
		SharedPreferences prefs = context.getSharedPreferences(name, mode);
		return prefs.getString(key, "");
	}

	public static boolean setSharedPreferencesValue(Context context, String name, int mode, String key, String value) {
		SharedPreferences prefs = context.getSharedPreferences(name, mode);
		SharedPreferences.Editor editor = prefs.edit();
		editor.putString(key, value);
		return editor.commit();
	}
}
